package com.jic.veteran.portal.service;

import cn.hutool.json.JSONObject;
import com.jic.veteran.model.ProjectDonationDetail;
import com.jic.veteran.portal.domain.DonationListDto;
import com.jic.veteran.portal.domain.ProjectDonationTotalDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;
import java.util.TreeMap;

public interface ProjectDonationService {
    /**
     * 捐款查询
     */
    List<ProjectDonationDetail> list(String openId, Integer pageSize, Integer pageNum);

    ProjectDonationDetail getItem(Long id);

    String pay(double trxamt,String openid,String projectId);

    String payCallback(TreeMap<String,String> notifyData);

    List<JSONObject> certifiSummary(String openId);

    JSONObject getCertificate(String openId,String projectId);

    String getPersonTotalProject(String openId);

    String getPersonTotalDonateAmout(String openId);

    List<ProjectDonationTotalDto> getDonateTotalByProjectIds(Set<String> ids);

    ProjectDonationTotalDto getDonateTotal();

    List<DonationListDto> getDonateListCurrentMonth(String month);

    List<DonationListDto> getDonateListCurrentYear(String year);

    List<DonationListDto> getDonateListTotal();

    String getprojectThanks(String projectId);
}
